package com.boot.main.mapper;

import com.boot.main.entity.CcomMenu;
import com.boot.main.entity.CcomPermission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface CcomMenuMapper {
    List<CcomMenu> getMenus();
    List<CcomMenu> getMenuByIds(@Param("menuIds") List<String> menuIds);
    int getTotalCount();
    int saveMenu(CcomMenu menu);
    int updateMenu(CcomMenu menu);
    int deleteMenu(Long id);
}
